<!--header-->
{include file="public/_meta" title="会员管理"/}
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 会员管理 <span class="c-gray en">&gt;</span> 会员列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
  <div class="text-c">
    <form action="{:url('user/index')}" method="get">
       <span class="select-box inline">
        <select name="status" class="select">
          <option value="2" {if condition="$status eq 2"}selected="selected"{/if}>全部</option>
          <option value="1" {if condition="$status eq 1"}selected="selected"{/if}>正常</option>
          <option value="0" {if condition="$status eq 0"}selected="selected"{/if}>审核</option>

        </select>
    </span>
      日期范围：
      <input type="text" name="start_time" class="input-text" id="countTimestart" onfocus="selecttime(1)" value="{$start_time}" style="width:120px;" >
      -
      <input type="text" name="end_time" class="input-text" id="countTimestart" onfocus="selecttime(1)" value="{$end_time}"  style="width:120px;">
      <input type="text" name="username" id="" value="{$username}" placeholder=" 会员名" style="width:250px" class="input-text">
      <button name="" id="" class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜会员</button>
    </form>
  </div>

  <div class="mt-20">
    <table class="table table-border table-bordered table-bg table-hover table-sort table-responsive" >
      <thead>
      <tr class="text-c">
        <th width="25"><input type="checkbox" name="" value=""></th>
        <th width="80">ID</th>
        <th>会员名</th>
        <th width="80">手机号</th>
        <th width="80">性别</th>
        <th width="360">个性签名</th>
        <th width="60">注册时间</th>
        <th width="60">发布状态</th>
        <th width="120">操作</th>
      </tr>
      </thead>
      <tbody>
      {volist name="list" id="vo"}
      <tr class="text-c">
        <td><input type="checkbox" value="" name=""></td>
        <td>{$vo.id}</td>
        <td class="text-l"><u style="cursor:pointer" class="text-primary"  title="查看">{$vo.username}</u></td>
        <td>{$vo.phone}</td>
        <td>{$vo.sex|showSex}</td>
        <td>{$vo.signature}</td>
        <td>{$vo->create_time}</td>
        <td class="td-status">{$vo.status|modifyStatus=$vo.id,###}</td>
        <td class="f-14 td-manage"><a style="text-decoration:none" class="ml-5" onClick="article_del(this)" href="javascript:;" title="删除" del_url="{:url('user/toDelete',['id'=>$vo.id])}"><i class="Hui-iconfont">&#xe6e2;</i></a></td>
      </tr>
      {/volist}
      </tbody>
    </table>
    <div id="laypage"></div>
  </div>

</div>
<!--header-->
{include file="public/_footer" /}

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__STATIC__/hadmin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="__STATIC__/hadmin/lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript">
     var getUrl='{$url}';
    var url="{:url('user/index')}"+'?'+getUrl;
    laypage({
        cont: 'laypage',//分页容器的id
        pages: '{$total}', //总页数
        curr:  '{$curr}', //当前页
        skin: '#5FB878',  //当前页的颜色
        jump:function(e,first){
            if(!first){
//                alert(url+'&page='+e.curr);
                location.href = url+'&page='+e.curr;
            }
        }
    });

</script>
<script type="text/javascript" src="__STATIC__/admin/js/common.js"></script>
<style>
  .imooc-app .pagination li{display:inline; padding-left:10px;}
  .pagination .active{color:red}
  .pagination .disabled{color:#888888}
</style>
</body>
</html>